@extends('layout')

@section('content')

Registration form <br>

@if ($user->id == -1) 
    {{ Form::open(array('action' => 'XHandler@register')) }}
@else 
    {{ Form::open(array('action' => 'XHandler@update')) }}
@endif
email (this is your username) {{ Form::text('username', $user->username) }}
<br>
Password {{ Form::password('password') }} &nbsp;
Repeat password{{ Form::password('repeat password') }}
<br>
First Name {{ Form::text('namefirst', $user->namefirst ) }}
<br>
Last Name {{ Form::text('namelast', $user->namelast ) }}
<br>
Home phone {{ Form::text('phonehome', $user->phonehome ) }}
<br>
Work phone {{ Form::text('phonework', $user->phonework ) }}
<br>
Mobile phone {{ Form::text('phonemobile', $user->phonemobile ) }}
<br>
@if ($user->id == -1) 
    {{ Form::submit('Register') }}
@else 
    {{ Form::submit('Save changes') }}
@endif
{{ Form::close() }}
{{ Form::open(array('url' => 'start', 'method' => 'get')) }}
{{ Form::submit('No, Never mind') }}
{{ Form::close() }}
@stop
